package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GameDictMapper;
import com.ruoyi.system.domain.GameDict;
import com.ruoyi.system.service.IGameDictService;
import com.ruoyi.common.support.Convert;

/**
 * 游戏助手字典 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-05
 */
@Service
public class GameDictServiceImpl implements IGameDictService 
{
	@Autowired
	private GameDictMapper gameDictMapper;

	/**
     * 查询游戏助手字典信息
     * 
     * @param id 游戏助手字典ID
     * @return 游戏助手字典信息
     */
    @Override
	public GameDict selectGameDictById(Integer id)
	{
	    return gameDictMapper.selectGameDictById(id);
	}
	
	/**
     * 查询游戏助手字典列表
     * 
     * @param gameDict 游戏助手字典信息
     * @return 游戏助手字典集合
     */
	@Override
	public List<GameDict> selectGameDictList(GameDict gameDict)
	{
	    return gameDictMapper.selectGameDictList(gameDict);
	}
	
    /**
     * 新增游戏助手字典
     * 
     * @param gameDict 游戏助手字典信息
     * @return 结果
     */
	@Override
	public int insertGameDict(GameDict gameDict)
	{
	    return gameDictMapper.insertGameDict(gameDict);
	}
	
	/**
     * 修改游戏助手字典
     * 
     * @param gameDict 游戏助手字典信息
     * @return 结果
     */
	@Override
	public int updateGameDict(GameDict gameDict)
	{
	    return gameDictMapper.updateGameDict(gameDict);
	}

	/**
     * 删除游戏助手字典对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGameDictByIds(String ids)
	{
		return gameDictMapper.deleteGameDictByIds(Convert.toStrArray(ids));
	}
	
}
